fixed enrichment bug. extended matquery to support fractions. Fixed self-parent-id bug for initially created resources