added test case and sketch of new interface