swd now keeps it's state in swd_t