add perm and commandHandler