add max discarded config parameter
cleanup enum names
nicer error formatting
update dub and dmd for testing