small fixes to api