some utilities for mongoose such as IP validation and generic search or lists