updated how opts are set