record important struct
handle connection
core file