start conversion to ruby script