made compatible for iframe trickery