added support for root