add schedule and get schedule working