make create flow file function