removed warning and register parameter instead. Will break integration tests

But since they dont work locally, I need to wait for travis.