use io.Reader instead of hardcode filename