add initial support for saving kernel arguments to file