updated deploy to handle old pid + re add preload app