making embeding depend on environment variable