remove signal handle
new type.c
start to support different types, now including string and integer