couple small fixes to scheduler and writeback service