work progress sugar balls

also getting rid of direct doctype refs--read from template instead