index functionality in server