adding nobuild and nohat flags