fix the file path/url issue onces and for all