added debug log setting