added support for setting custom anchors