add debug in task_save
add more debug info
more debug
fix debug message
print after init