remove debug code
add support of condition compilation