fix error checking and test for custom fern/bad data
version 0.0.17