update nomic to use env variables