adding supporting infrastructure for lib/mod creation (still in progress)