add input file management to messaged