fixed so it uses tar data rather than file location