fixing errors with imported file parser/writer