added priorities controller