clean lainExplorer code to take advantage of new apis