main script added, keys are stored in dictionary