create scheduler factory