refactoring
refactoring
read file and install function