connect train socket and add train markers