use indexing instead of #get, fix other deprecations