linq api (issue #5)