tweaking deploy to remove tmp file