now accept id list in file