add extra long field; allow null appId