fix get-opts