update environment
add OSX support