registering stuff the right way