modify to filter console message