try to fix genPrios for imports
Merge branch 'refactor/genPrio'

Fixes #1143