add id to app output
fix json in filename issue