fixes in api