file rates
json to cookie
cookie json to inputs
total functions