lightweight scheduler and reactor