crc functions
added --crc -c option to the client (default FALSE)