added schedule factory