fixed minor bug in chains (split words by whitespace)