updated client classes
updated server code for fetching posts