fixed msvc buld
fixed segfaults on accessing temp objects vector buffers
fixed races