progress on making pen tool work