changed opts name to be more consistent