fix method calls
many small bugfixes, mostly porting errors