merging path & event system into one sketch