revised plot and get event functions for faster rendering
fix merge, global something