check if outputs are defined and extract param from them