relative files need to be replaced first