more robust version, including force-stop option
correct usage