hacked in functions for debugging with weinre tool