registration stuff - replacing logging in stuff