add better nil handling to smartize