redesign repository index.json
fix all bugs on __ attributes
redesigned repository api