improve logic in setting parameters in check mode (monitor might not exist)