parser changed for rest to javascript