logging stuff and preventing monitors to be initialised twice