repository finally working. hashmap mostly done.