allows passing of warn and crit variables