add a lift function in util
generalise form format for chain
make printfile1 use new lift() and generalised chain()