only run this on the app server