more tweaking for running in terminal on osx