add options to stub.c
added options to stub.c