get key from config file
refactoring
remove unused imports