more railsish way (less likely to lead to bugs)