added method to define custom extractors