cleaned up small errors with impersonate