convert rest to meta

#869
Change all ```lastPosition``` to ```fromPosition```