revert config files and permissions