add mapify utility; refactor inspect utility and put into singleton