added some error filtering

Signed-off-by: Chris Jones <chris@jonezy.org>
Merge pull request #263 from jonezy/master

added some error filtering