modify error path