handle relative path