handle empty lines better