a simple cosmological lib