updated error and oom scripts