add relative scope support