added API for getting kwparameters