updated for append handler