hg-model directive stuff