added Go support some misc fixes