added user method to API