new version including simple plot to check JES implementation