repaired pull.php