working version of log support and configuration via options