added status and error fields