added api factory spec