code refactor
add configuration, the devise way