#44 added support for contexts in iterator functions