add option to turn off parallel execution
fix some errors using compilation database
use frozenset when it is possible