fixed bug with getschedulebybusid that only returned direction 0. Now returns both 1 and 2