minor changes to api class