added chain support
added to example