two different ways of trying making the call to deproxy makes this harder to read and inconsistent. It looks like you aren't even using the bad key with this second call.