rewrite of ComendiumNG