add debug print func! fix #278