setup ports
remove keys and timestamps after sending them