first draft of do_ref_arry
first draft of remove action

not so much removing as replacing with a dummy function - function(){} - could do better.
bastard check