added support for relative paths