added default option for debug=False