implementation of 'set_active' #118