write events
new process method
added tostring