refactoring

    pool keeper reimplemented as class