solves problems 1 and 2 (see: log20130107). checks file if exists in the list