move printfs to a less random memory access place