deal with methods returning objects that can't be cast to string