added exception
fixed qdebug