added initial support for parsing attributes