added attribute stripping support