added stop and terminate operations