Rings which are almost polynomial rings