add 'shared_in' and 'shared_out'