only adding file reading functions if not in browser