debug: added debug mode