added params features, bug fixes