made `agop` more CRAN friendly