fixed compile errors

there was some error because of some changes in the interface. It should compile normally now.