fix temporary directory
log state per worker