added support for printing lazy lists