changed max_wait to SERVICE_MAX_WAIT