moved with_patched_client under sanction for external imports