swapped method swizzling with static state in appdelegate category