fix add_opts recursion