more accurate log
added SWIG_SYNCHRONIZE macro