add support for --optimize=1 --debug=3