debug version, add listener test and fix bug