added debug helpers