+ set proper logging in optimizer code