add priority based scheduling feature