optimize for macosx
for bash