gras: move block set/get into common area