V4.0

removed unused variables and removed server page referances