refactor
add setting for ruby