options on returns nested in a function works