ensure correct access for external files