optimization and kernel docs