made compatible with 1.9.x, added whenever
added a logger, changed schedule