refactor prototypes/system parsing and validation