some build script stuff for opt deps in ye future cleanup