delete unused files and config gets method