resolve devise