static & triggered modifiers

added the static/triggered modifiers, plus some minor bug fixes