actually return values in get_opts function