make logging actually work