add debug lines
finish version v0.5