fixes to api