fix some bugs, cleanup, add print-task task