modify sh script to work with v2.013