added all methods for api