modified for Brackets 4.2