added debug false option for production