fix typos, freeze script for mac osx