fix relative file path issues