add method for getting messages dependent on a given pending file id