changed file pointer type so logs arent overwritten