fixed the concurrency bug in ADM. ready to use.