fix loggin issues