fix for #22 impersonation