convert to options Hash