Revert "new permission scheme"

This reverts commit 287b23c1cc23695c99ae4cc790ba398cf4698bc3.