removed filepath and filename from opts