handle relative paths for assets