added some scheduleing stuff