reduce code duplication
use parameter expansion to simplify "minirc start..."