added getChainFile method