remove parts of config