copy before adding devise integration