add some log functionality
add some functionality