add permission and strictmode