switches to accomodate compile-sg