small tweaks to regs
add a serializer that uses the same grammar
move everything and add a common entry point