handle relative file paths