removes /php, adds a lot to /api