mode parameter switched to more natural way:
all, href, onclick instead of 0,1,2