accessors created for stop flag in task
merged with github current version