add check factory script