added protocol configuration, fix an issue with card id length