modify to work with sublime text 3