add a simple scheduler