adding code to enable/disable debugbar depending on env