removing environment, config and diagnostics