yearview: rework code to be more compatible with opts