fix the interface.c bugs....