ref-filter: introduce parsing functions for each valid atom