fixed confirm and added scope