fix fail when no opts passed into constructor