refactor download package command