free memory before returning nothing
Remove extract_rules; need to put back later with a cleaner design
support feature functions
regression test for new-decoder