add support for registers to parser (only to parser so far)