res_setup*