fixed setopts