added methods for api