oops, should be inverse
make study template more generalized
change agfkGlobals to oGlobals, eek