testcode working with a hacked wait for the frame to load...