refine and add mongoose