deal with public prepend on localhost files