implement debug mode