fixes for 5.6; implemented integer return values

the project is still alive?