remove unused binding
cleanup buffer
ws