capitalize name + small fix tryReg func