Client conditional changes
changed .eql? back to ='s as logic was not working
not sure why getting warnings from ruby interpretter so founds some code
to slience a block a code's warnings and wrapped the two comparisons in
that