modified:   idx
	change /bin/sh to /bin/bash for avoiding error on ubuntu