updated getTask - works now