update for wp default error handling