fixed clang complete and other stuff