attempt to smart Sublime Text 3 script