Update setup_functions

add some stuff to use in OSX