ignore sub only
support arrayref