building thread parser