fix parsing opts on sourcing