new file:   bedtk.c