made priority configureable