only use detective once, fix browserify error cache