merge hwp into params
bugfixes