add swap search
ip tests fixed