using envvar dir