added debug checkbox