left out blank index.php and added a check to avoid plugin being called directly