add connect and close track