store location in a before_filter