generate dictionary and add from file is okeyed