working mongo io snippet