added the possibility to set the scope by string