fixing some local/remote filename bullshit in directory router