add options to stub.c