add flags to customize clang handling