fix errors and correct hostnames to prod