porting all basic code to attribute-repo-core