clean up unused lantern code