remove panic and make it log.Fatal in env.go