add major errors and jsonp support