context managers, registration and auth