added support for main tag