implmented basic user api