bash hack should no longer be needed on OSX