improve command.sh