added partial_chain fun depending on vsn