final version with all attributes currently supported