fixed (stub)url to add permissions