add priority and stacksize