successfully generate xml
fix bugs in generating tasks