add checking of app code