refactor; AT command round trip