updated sconstruct because it doesn't handle switches right