minor fixes to api