add proper loggin