better regenerator build step. probably doesn't work