generalized 2manual to prepare.sh