adds extended do.sh functionality