usermode stuff again... use set instead of dictionary for modes