debugging toggle feature