lib: wip generic registers and groups