need to fix browserify middleware