add exception handling into parsing; fix a bug of 'publisher'