update to use generators
release 0.5.0