bogdan, what you propose is close to what i suggested. in my proposal the mask was not fixed, but dynamic, in the sense that if a branch modified any flag, that flag would be then removed from global flags and added to branch flags. your more static solution is fine with me too. -- juha