modify resource path in file