Userblockandkillswitch

split this into functions because this got complicated a lot