generateBefore: (opts, next) ->