removes issue of popping the first arg, which might not be a filename