fix compile errors, gateway application extension added