minor changes for compatibility with Sublime 3