add sleep to grape v2
change scripts to be genral