fix env variables, change routes