handle nil arguments in support functions