changed class memebers from private to protected so that they'll be retu...

...rned upon serialisation