add check if source file exists