added thin_timeout, thin_wait parameters