updated driver to only run when run as primary program