moved consistenc checks into add and parse methods