making a debug mode