port to 3.8

fixes #8