implement method edit and apply via prepare_for_run