fixed embarassing bug with counter not being incremented
started working on python client