updated ServerObject

removed last property, improved getHeader function