many changes to support recordstore & TCP connection
SPF relay working with wifly module