finished logic for array support and record/editable-record revamp