added support for featurelayer defined in the scope