post-first-deploy hook plus formatting fixes