Refined core/service/xservice.php