clearup code logic
order hostdata parameters