validate the existence of app.pg