break up postinstall.sh