encode url
add backtrace to errors