switch per option
fix script compilation