better management for clang objects