almost finished with cookie locale resolver implementation