- basic implementation for dimension and diameter helpers is done
 * still need a bit of cleanup, and less hackish code in some places