made the runplugins loop more readable
fixed a bug in the ponging