fix setup to register