changes to mainservelet