improved runme2.py, still needs debugging