changed the undefined enum to int, the trunk version is not affected