fix out format, add sleep interval  in safemaze