add relocat file function