working on debugging ktp more...