add support for NilClass