default opts logic fix