added support for /var directory