fixed logginng