test payload delivery, remove dead code