crap, TODO: binary safe logger