add install_velvet, refactor code