add instance logging
add instance logging