support coordinate file with empty lines