migrate the extra options from build.sh