file exist error checks added s2Program