add in version, improve AS API a bit, move eventstream to the right place