edited open so it does not crash if you try to open root