add task small fix
-beforeloop
+ Flock support