use .hpp extension; optionally sort topology