use APPLICATION in pid creation