replaced `eval` with alternatives using `define_method`
replace *_eval with *_exec