add error handler to ranking
add publishing token processing