tweaks to work with relpath in database