proper way to enable debug