change repository interface read to array of ids