added logging and yum install ruby