better build process with prepare.sh script