parse block from input files