fix from private
add allchans options to last commands
add debug logging function
oups that was stupid
reschedule past tasks after restart