fixed buffer overrun
tmp mem fix
make atom of uri