added log caputre