fixing out of date method call register->registerWith