Clarify and fix handler.php