add iptools main for test