added more logging, fixed scheduling events