race conditions between php and actord