data calculation (requires sugar in bipio server bootstrap)