removed an unnecessary import
fixed incorrect handling of attribute prefixes