fixes for future parser - mode must now be a string, otherwise a deprecation warning is output