prepend.sh added and some changes