added partial implementation of user api