fixes for bugs introduced while moving runtime code back out of iframerunner