everything works except for logging