migrated to spawn for build/run process