make sure $opt is defined in field templates