auto balancer between BCMATH and std math function