added serializing of module names resolved with _resolve_modules