add support for different prioritys and scheduling policies