add option to activate debug mode