handle tasks per nodes argument in profile