use standard path library
make printf a string generator
bug fix: output full uri for every problem