use global os_* var to replace old var