partial implementation of tablelens