remove userdata lines when creating a snapshot