upgraded to urlpath-0.2, and fixed some imports