got it working completely in go. just set it up in two files remains