fix missing init_buffer; use more threads; default pwd