deal with client sending string instead of boolean