resources can be initialized with a hash, style fixes