simple prioritized task scheduling framework