updated protocol code.. stripped unnessary code + customized client specific data