added deleted lines from faulty sublime plugin