updating the wrapper to handle all msgs
adding flattening routines, updated client manager to handle msgs