a bug fix for mac and linux platform, instead of passing command line arguments, file reading/writing is being used