refactored older code, fixed arguments in installation command