minpriority compiles and doesnt segfault but not complete