rewrited parsing options funct