reduce dimensional lib to an easy-to-understand core