implementation user api fix bugs and tested all implementation API