fix problem for getting encoded request query
add debug mode encryption