add initial support for exportable modules
move logger to same namespac