still trying to find a clean way to hook into browserify lifecycle