added a debug mode