stop using printf logging and use nlog instead
logging finally working correctly (that was more difficult that necessary)