basic formatting for client and server