FIX forget to pass opts as argument