optimization and permissions