convert to using command queue to send, and more debug