minor changes to API