use 'kernel' mode for testing