changed to debug=True for testing