ability to get the first item of and interable
cleanup, bugfixing