modularized shell scripts