add logic to expand consolidated files