move after deploy hook into app loop