run.sh optimized for local usage