proper parsing of TLS and DS attrs