added some initial support for kernel parameter