processes: change type to contextswitch and types to derive_t