static err handler replaced