The idea here is to preserve the history of `dev` branch development and its code when merging with the `master`. Later this code could be moved into the masters code where appropriate.
1) AND 2) XOR 3) OR 4) INVERT
refactor handlers to have rstack as argument