adds Locals Error Handler