optimize kernel configure