added log to txt
missing stack print