some optimalizations for sharing content