some code updates and log update