make file after initial connection established.
improve memory use.