port gitrec to open source mortar-recsys