add debug mode
allow stdandard output