added bug logger