improve errors logging in device-parse.php