first try for process events
trailing spaces
eventloop for ploting devices