problem with resources and localhost url fix