Invoking calais tasks the right way