finished initial work for user api