generalize process and update readme