added support for application layers in the automation script