fixes for api methods