improved loging