solve deprecated error with options resolver