added data.php and added some fixes