added support for mirrors