added the code for simple custom gatherer
