adds sub sharing functionality