added support to disable automatic permission request