decouple tasks to flowdock & logger modules
declare event listeners outside the loop