before mongo implementation