add production flag for ios and better type resolving for url's