use new loggin functions