resource fix and jsonp fix