combile register.sh to prepare.sh