improved priorities etc ,added clang compiler