FIX: printing of optimizer output is non-blocking