added post class
can now post to server without crash