added option to run on debug mode