another attempt to check whether source exists