Scheduled publishing

few more changes to get scheduled publishing working on publisher.