refice TS show instance, fix programId, add some functions.