fixed some minor compilation issues - it should now be working