Fix resource paths, write own formatData function