update nullApp.c and uses new API