playaround code for the qatt tool