reworked execinit, fixed a bug in createtask