added support for absolute paths