handle app id for different domains