added logging to main bot