- removed some old code, that was not used anymore (comment)
- added priorities