added utility functions to open local files (json,txt)