std: clean up ptr a bit