update permission in lib, assets