remove complicated buffer binding and locking logic