refactor to unbar and unzip a provided client file