fixing debug switches