logger has to be on top