fixes #211 + improvements in shared files storage efficiency