bugfix: main yield was not intended correctly

fixes #221