added support for {before: :all} in collections