fixed small memory leak
added /log option