added payload getter and setter