fleshed out generate_chain some more, added a process block