change export code to group no app id and null app id together