read safely