added ruby syntax checking