handle relative paths