add multi error support