File.read(contract_path) appears twice