added functions getAll() and getOne() to ciRegistry + cleanup