part of #215 Add API resolveAppId