now printing stderr to log. Everything seem sto work now