add protocol argument to optimize() and optimize Load and Assign