fixes #5 ... don't assume everything is json