can't use safebuf in a thread. oops!