error system and edits