working on some event handler stuff - still in a very primative stage