added sleeping loop to run_gribmaster