fixed incorrect addressing of opts hash