new_buffer(...) and kill_buffeer(...) now work properly