bugfixes w/ iframe level context and logging