add ability to get instance by composite primary key