added payload logging