improve shared_directories settings