fixed output issues, not where the file outputs to