make various local variables into instance variables for ease of splitting up logic
make various local variables into instance variables for ease of splitting up logic

takeflight/wagtail,mixxorz/wagtail,rsalmaso/wagtail,torchbox/wagtail,jnns/wagtail,mixxorz/wagtail,wagtail/wagtail,kaedroho/wagtail,jnns/wagtail,takeflight/wagtail,zerolab/wagtail,rsalmaso/wagtail,zerolab/wagtail,rsalmaso/wagtail,rsalmaso/wagtail,gasman/wagtail,FlipperPA/wagtail,jnns/wagtail,thenewguy/wagtail,thenewguy/wagtail,kaedroho/wagtail,torchbox/wagtail,wagtail/wagtail,wagtail/wagtail,jnns/wagtail,FlipperPA/wagtail,gasman/wagtail,takeflight/wagtail,wagtail/wagtail,gasman/wagtail,gasman/wagtail,takeflight/wagtail,torchbox/wagtail,FlipperPA/wagtail,mixxorz/wagtail,wagtail/wagtail,gasman/wagtail,mixxorz/wagtail,torchbox/wagtail,kaedroho/wagtail,thenewguy/wagtail,thenewguy/wagtail,zerolab/wagtail,rsalmaso/wagtail,thenewguy/wagtail,zerolab/wagtail,mixxorz/wagtail,kaedroho/wagtail,FlipperPA/wagtail,kaedroho/wagtail,zerolab/wagtail