fixed some url <-> filepath mapping bugs