better errors, stderr file lock, error limit