fix config bug; add some logging