ref #27 devise added