ugly mongo helper