working on login,rpc,globaldata and catch