break out core vs optional deps build scripts