changed the way of gem configuration