tracking down sld bug

Plus some crappy windows formatting :(