changes to logging in