added app_compat to fix errors7