logging should be sort of fixed