debugging line parsing, should probably use fgetc