improved bagri-distr module