rebuild relation.class.php