get options query like string or array and parse inside of method