add logging for lib/account