fixed prepare.sh to split files