scheduler prototype.