added ability to specificy the idAttribute for the schema