bug fixes on shared file reads