change to use bash instead of sh