code cleanup
re-enable flush log
use dynamic credentials of user manager in LIVE mode