add type and endpoint into create frame