fix bugs in backend---register methods