starting to write connection to FG - SAM's version. FG connection works from FG