now also parses custom attributes