added updateBuffer to network thread

untested