- This change also facilitates proper error response in case of md5 mismatch or corruption - TODO a test function needs to be implemented